import axios from './index'
//登录，获取token
export function login(url,data){
    return axios({
        url,
        method:'post',
        data
    })
}
//获取用户信息及权限
export function getUserInfo(url,token){
    return axios({
        url,
        method:'post',
        data:token
    })
}

//后端登出
export function logout(url,username){
    return axios({
        url,
        method:'post',
        data:username
    })
}